package com.alex.goods.entity;

import com.alex.goods.util.Blank;

import lombok.Data;

@Data
public class Goods {
	private Integer id;
	private String goodsNo;
	private String goodsName;
	private String standard;
	private String material;
	private Integer num;
	private String isin;
	private String isout;
	public String getIsin() {

		if (!Blank.isBlank(isin)) {
			return isin.equals("on") ? "允许入库" : "禁止入库";
		}
		return null;
	}

	public String getIsout() {
		if (!Blank.isBlank(isout)) {
			return isout.equals("on") ? "允许出库" : "禁止出库";
		}
		return null;
	}
}
